function search() {
    var start = document.getElementById("txtStart").value
        , end = document.getElementById("txtEnd").value;
    // 百度地图API功能
    var map = new BMap.Map("allmap");
    map.centerAndZoom(new BMap.Point(116.404, 39.915), 11);
    var driving = new BMap.DrivingRoute(map, {renderOptions: {map: map, autoViewport: true}});
    driving.search(start, end);
}
search();


function info_window(){
    $('#window').show();
}
function close_window(){
    $('#window').hide();
}

